import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

import CenterRouter from './center/center'
import DiscountRouter from './discount/discount'
import Dis_items from './dis_items/dis_items'
import EquipmentRouter from './equipment/equipment'
import HomeRouter from './home/home'
import EquitemsRouter from './equitems/equitems'
import CartlistRouter from './cartlist/cartlist'
import DisitemslistRouter from './disitemslist/disitemslist'
import TrendRouter from './trend/trend'
import ClothesRouter from './clothes/clothes'
import DigitalRouter from './digital/digital'
import forgetRouter from './forget/forget'
import loginRouter from './login/login'
import regRouter from './reg/reg'
import nofound from './nofound/nofound'




const routes = [
  CenterRouter,
  DiscountRouter,
  EquipmentRouter,
  HomeRouter,
  Dis_items,
  EquitemsRouter,
  CartlistRouter,
  DisitemslistRouter,
  TrendRouter,
  ClothesRouter,
  DigitalRouter,
  forgetRouter,
  loginRouter,
  regRouter,
  nofound,
  {
    path:'/',
    redirect: '/Home'
  },
  {
    path:'*',
    redirect:'/nofound'
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
